<!DOCTYPE html>
<html lang="en-us">
<head><head>
    <meta name="referrer" content="no-referrer"/>
    <meta name="google-site-verification" content="9vIieCe-Qpd78QOmBl63rGtIVbhY6sYyuxX3j8XWBA4" />
    <meta name="baidu-site-verification" content="LRrmH41lz7" />
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="google-site-verification" content="xBT4GhYoi5qRD5tr338pgPM5OWHHIDR6mNg1a3euekI" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <meta name="description" content="java多线程处理">
    
    <meta name="keyword"  content="暴走的初号机, shinji3887, 暴走的初号机的网络日志, 暴走的初号机的博客, shinji3887 Blog, 博客, 个人网站, 互联网, Web, 云原生, PaaS, Istio, Kubernetes, 微服务, Microservice">
    <link rel="shortcut icon" href="/img/favicon.ico">

    <title>使用ThreadPoolTaskExecutor对任务进行异步阻塞处理-同步率400%</title>

    <link rel="canonical" href="/post/thread-pool-task-executor/">

    <link rel="stylesheet" href="https://lupeier.cn-sh2.ufileos.com/iDisqus.min.css"/>
	
    
    <link rel="stylesheet" href="https://lupeier.cn-sh2.ufileos.com/bootstrap.min.css">

    
    <link rel="stylesheet" href="https://lupeier.cn-sh2.ufileos.com/hux-blog.min.css">

    
    <link rel="stylesheet" href="https://lupeier.cn-sh2.ufileos.com/syntax.css">

    
    <link rel="stylesheet" href="https://lupeier.cn-sh2.ufileos.com/zanshang.css">

    
    <link href="/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    
    
    <script src="https://lupeier.cn-sh2.ufileos.com/jquery.min.js"></script>
    
    
    <script src="https://lupeier.cn-sh2.ufileos.com/bootstrap.min.js"></script>
    
    
    <script src="https://lupeier.cn-sh2.ufileos.com/hux-blog.min.js"></script>
</head>
</head>

<nav class="navbar navbar-default navbar-custom navbar-fixed-top">
    <div class="container-fluid">
        
        <div class="navbar-header page-scroll">
            <button type="button" class="navbar-toggle">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">L&#39;s Blog</a>
        </div>

        
        
        <div id="huxblog_navbar">
            <div class="navbar-collapse">
                <ul class="nav navbar-nav navbar-right">
                    <li>
                        <a href="/">Home</a>
                    </li>
                    
                    <li>
                        <a href="categories/tech">tech</a>
                    </li>
                    
                    <li>
                        <a href="categories/tips">tips</a>
                    </li>
                    
                    <li>
                        <a href="/about">About</a>
                    </li>
                    
                </ul>
            </div>
        </div>
        
    </div>
    
</nav>
<script>
    
    
    
    var $body   = document.body;
    var $toggle = document.querySelector('.navbar-toggle');
    var $navbar = document.querySelector('#huxblog_navbar');
    var $collapse = document.querySelector('.navbar-collapse');

    $toggle.addEventListener('click', handleMagic)
    function handleMagic(e){
        if ($navbar.className.indexOf('in') > 0) {
        
            $navbar.className = " ";
            
            setTimeout(function(){
                
                if($navbar.className.indexOf('in') < 0) {
                    $collapse.style.height = "0px"
                }
            },400)
        }else{
        
            $collapse.style.height = "auto"
            $navbar.className += " in";
        }
    }
</script>




<style type="text/css">
    header.intro-header{
        background-image: url('https://lupeier.cn-sh2.ufileos.com/clouds-dawn-dock-891822.jpg')
    }
</style>
<header class="intro-header" >
    <div class="container">
        <div class="row">
            <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                <div class="post-heading">
                    <div class="tags">
                       
                       <a class="tag" href="/tags/java" title="java">
                           java
                        </a>
                        
                    </div>
                    <h1>使用ThreadPoolTaskExecutor对任务进行异步阻塞处理</h1>
                    <h2 class="subheading"></h2>
                    <span  class="meta">Posted by L&#39; on Monday, November 19, 2018
                        
                    </span>
					<br>
                </div>
            </div>
        </div>
    </div>
</header>




<article>
    <div class="container">
        <div class="row">

            
            <div class="
                col-lg-8 col-lg-offset-2
                col-md-10 col-md-offset-1
                post-container">

        		
                        <header>
                        <h2>TOC</h2>
                        </header>
                        <nav id="TableOfContents"></nav>
        		
        		<p>最近项目中要用到多线程处理任务，自然就用到了ThreadPoolTaskExecutor这个对象，这个是spring对于Java的concurrent包下的ThreadPoolExecutor类的封装，对于超出等待队列大小的任务默认是使用RejectedExecutionHandler去处理拒绝的任务，而这个Handler的默认策略是AbortPolicy，直接抛出RejectedExecutionException异常，这个不符合我们的业务场景，我希望是对于超出的任务，主线程进行阻塞，直到有可用线程，简单的代码如下</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-java" data-lang="java">ThreadPoolTaskExecutor taskExecutor <span style="color:#f92672">=</span> <span style="color:#66d9ef">new</span> ThreadPoolTaskExecutor<span style="color:#f92672">();</span>
<span style="color:#75715e">//默认线程池建立的线程数，当多余的线程处于空闲状态时，大于这个数字的线程会自动销毁
</span><span style="color:#75715e"></span>taskExecutor<span style="color:#f92672">.</span><span style="color:#a6e22e">setCorePoolSize</span><span style="color:#f92672">(</span>10<span style="color:#f92672">);</span>
<span style="color:#75715e">//最大的线程数
</span><span style="color:#75715e"></span>taskExecutor<span style="color:#f92672">.</span><span style="color:#a6e22e">setMaxPoolSize</span><span style="color:#f92672">(</span>10<span style="color:#f92672">);</span>
<span style="color:#75715e">//等待队列数，这里为了测试方便设置为0，实际可根据具体场景设置
</span><span style="color:#75715e"></span>taskExecutor<span style="color:#f92672">.</span><span style="color:#a6e22e">setQueueCapacity</span><span style="color:#f92672">(</span>0<span style="color:#f92672">);</span>
taskExecutor<span style="color:#f92672">.</span><span style="color:#a6e22e">setRejectedExecutionHandler</span><span style="color:#f92672">(</span><span style="color:#66d9ef">new</span> RejectedExecutionHandler<span style="color:#f92672">()</span> <span style="color:#f92672">{</span>
    <span style="color:#a6e22e">@Override</span>
    <span style="color:#66d9ef">public</span> <span style="color:#66d9ef">void</span> <span style="color:#a6e22e">rejectedExecution</span><span style="color:#f92672">(</span>Runnable r<span style="color:#f92672">,</span> ThreadPoolExecutor executor<span style="color:#f92672">)</span> <span style="color:#f92672">{</span>
        <span style="color:#66d9ef">if</span> <span style="color:#f92672">(!</span>executor<span style="color:#f92672">.</span><span style="color:#a6e22e">isShutdown</span><span style="color:#f92672">())</span> <span style="color:#f92672">{</span>
            <span style="color:#66d9ef">try</span> <span style="color:#f92672">{</span>
                log<span style="color:#f92672">.</span><span style="color:#a6e22e">info</span><span style="color:#f92672">(</span><span style="color:#e6db74">&#34;start get queue&#34;</span><span style="color:#f92672">);</span>
                executor<span style="color:#f92672">.</span><span style="color:#a6e22e">getQueue</span><span style="color:#f92672">().</span><span style="color:#a6e22e">put</span><span style="color:#f92672">(</span>r<span style="color:#f92672">);</span>
                log<span style="color:#f92672">.</span><span style="color:#a6e22e">info</span><span style="color:#f92672">(</span><span style="color:#e6db74">&#34;end get queue&#34;</span><span style="color:#f92672">);</span>
            <span style="color:#f92672">}</span> <span style="color:#66d9ef">catch</span> <span style="color:#f92672">(</span>InterruptedException e<span style="color:#f92672">)</span> <span style="color:#f92672">{</span>
                log<span style="color:#f92672">.</span><span style="color:#a6e22e">error</span><span style="color:#f92672">(</span>e<span style="color:#f92672">.</span><span style="color:#a6e22e">toString</span><span style="color:#f92672">(),</span> e<span style="color:#f92672">);</span>
                Thread<span style="color:#f92672">.</span><span style="color:#a6e22e">currentThread</span><span style="color:#f92672">().</span><span style="color:#a6e22e">interrupt</span><span style="color:#f92672">();</span>
            <span style="color:#f92672">}</span>
        <span style="color:#f92672">}</span>
    <span style="color:#f92672">}</span>
<span style="color:#f92672">}</span>
<span style="color:#f92672">);</span>
taskExecutor<span style="color:#f92672">.</span><span style="color:#a6e22e">initialize</span><span style="color:#f92672">();</span>

<span style="color:#66d9ef">for</span> <span style="color:#f92672">(</span><span style="color:#66d9ef">int</span> i <span style="color:#f92672">=</span> 0<span style="color:#f92672">;</span> i <span style="color:#f92672">&lt;</span> 100<span style="color:#f92672">;</span> i<span style="color:#f92672">++)</span> <span style="color:#f92672">{</span>
    <span style="color:#66d9ef">final</span> <span style="color:#66d9ef">int</span> index <span style="color:#f92672">=</span> i<span style="color:#f92672">;</span>
    taskExecutor<span style="color:#f92672">.</span><span style="color:#a6e22e">execute</span><span style="color:#f92672">(</span><span style="color:#66d9ef">new</span> Runnable<span style="color:#f92672">()</span> <span style="color:#f92672">{</span>
  
        <span style="color:#a6e22e">@Override</span>
        <span style="color:#66d9ef">public</span> <span style="color:#66d9ef">void</span> <span style="color:#a6e22e">run</span><span style="color:#f92672">()</span> <span style="color:#f92672">{</span>
            <span style="color:#66d9ef">try</span> <span style="color:#f92672">{</span>
                log<span style="color:#f92672">.</span><span style="color:#a6e22e">info</span><span style="color:#f92672">(</span><span style="color:#e6db74">&#34;thread start &#34;</span> <span style="color:#f92672">+</span> index<span style="color:#f92672">);</span>
                Thread<span style="color:#f92672">.</span><span style="color:#a6e22e">sleep</span><span style="color:#f92672">(</span>200000<span style="color:#f92672">);</span>
                log<span style="color:#f92672">.</span><span style="color:#a6e22e">info</span><span style="color:#f92672">(</span><span style="color:#e6db74">&#34;thread end &#34;</span> <span style="color:#f92672">+</span> index<span style="color:#f92672">);</span>
            <span style="color:#f92672">}</span> <span style="color:#66d9ef">catch</span> <span style="color:#f92672">(</span>InterruptedException e<span style="color:#f92672">)</span> <span style="color:#f92672">{</span>
                <span style="color:#75715e">// TODO Auto-generated catch block
</span><span style="color:#75715e"></span>                e<span style="color:#f92672">.</span><span style="color:#a6e22e">printStackTrace</span><span style="color:#f92672">();</span>
            <span style="color:#f92672">}</span>
        <span style="color:#f92672">}</span>
    <span style="color:#f92672">});</span>
<span style="color:#f92672">}</span>
</code></pre></div><p>结果输出：</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-sh" data-lang="sh">INFO  2018-11-15 12:41:00,115 <span style="color:#f92672">[</span>scheduler-ssmQuartz_Worker-1<span style="color:#f92672">]</span> org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor: Initializing ExecutorService 
INFO  2018-11-15 12:41:00,116 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-1<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread start <span style="color:#ae81ff">0</span>
INFO  2018-11-15 12:41:00,116 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-2<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread start <span style="color:#ae81ff">1</span>
INFO  2018-11-15 12:41:00,116 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-3<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread start <span style="color:#ae81ff">2</span>
INFO  2018-11-15 12:41:00,116 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-4<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread start <span style="color:#ae81ff">3</span>
INFO  2018-11-15 12:41:00,116 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-5<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread start <span style="color:#ae81ff">4</span>
INFO  2018-11-15 12:41:00,117 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-6<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread start <span style="color:#ae81ff">5</span>
INFO  2018-11-15 12:41:00,117 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-7<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread start <span style="color:#ae81ff">6</span>
INFO  2018-11-15 12:41:00,117 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-9<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread start <span style="color:#ae81ff">8</span>
INFO  2018-11-15 12:41:00,117 <span style="color:#f92672">[</span>scheduler-ssmQuartz_Worker-1<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: start get queue
INFO  2018-11-15 12:41:00,117 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-8<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread start <span style="color:#ae81ff">7</span>
INFO  2018-11-15 12:41:00,117 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-10<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread start <span style="color:#ae81ff">9</span>
INFO  2018-11-15 12:44:20,116 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-4<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread end <span style="color:#ae81ff">3</span>
INFO  2018-11-15 12:44:20,116 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-2<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread end <span style="color:#ae81ff">1</span>
INFO  2018-11-15 12:44:20,116 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-4<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread start <span style="color:#ae81ff">10</span>
INFO  2018-11-15 12:44:20,116 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-3<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread end <span style="color:#ae81ff">2</span>
INFO  2018-11-15 12:44:20,116 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-1<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread end <span style="color:#ae81ff">0</span>
INFO  2018-11-15 12:44:20,116 <span style="color:#f92672">[</span>scheduler-ssmQuartz_Worker-1<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: end get queue
INFO  2018-11-15 12:44:20,117 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-1<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread start <span style="color:#ae81ff">11</span>
INFO  2018-11-15 12:44:20,117 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-6<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread end <span style="color:#ae81ff">5</span>
INFO  2018-11-15 12:44:20,117 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-5<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread end <span style="color:#ae81ff">4</span>
INFO  2018-11-15 12:44:20,117 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-7<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread end <span style="color:#ae81ff">6</span>
INFO  2018-11-15 12:44:20,117 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-9<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread end <span style="color:#ae81ff">8</span>
INFO  2018-11-15 12:44:20,117 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-10<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread end <span style="color:#ae81ff">9</span>
INFO  2018-11-15 12:44:20,117 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-8<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread end <span style="color:#ae81ff">7</span>
INFO  2018-11-15 12:44:20,117 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-3<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread start <span style="color:#ae81ff">12</span>
INFO  2018-11-15 12:44:20,117 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-2<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread start <span style="color:#ae81ff">13</span>
INFO  2018-11-15 12:44:20,117 <span style="color:#f92672">[</span>scheduler-ssmQuartz_Worker-1<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: start get queue
INFO  2018-11-15 12:44:20,120 <span style="color:#f92672">[</span>scheduler-ssmQuartz_Worker-1<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: end get queue
INFO  2018-11-15 12:44:20,120 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-8<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread start <span style="color:#ae81ff">14</span>
INFO  2018-11-15 12:44:20,120 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-10<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread start <span style="color:#ae81ff">15</span>
INFO  2018-11-15 12:44:20,120 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-5<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread start <span style="color:#ae81ff">18</span>
INFO  2018-11-15 12:44:20,120 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-7<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread start <span style="color:#ae81ff">17</span>
INFO  2018-11-15 12:44:20,120 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-9<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread start <span style="color:#ae81ff">16</span>
INFO  2018-11-15 12:44:20,120 <span style="color:#f92672">[</span>scheduler-ssmQuartz_Worker-1<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: start get queue
INFO  2018-11-15 12:44:20,120 <span style="color:#f92672">[</span>ThreadPoolTaskExecutor-6<span style="color:#f92672">]</span> com.bocsh.base.quartz.TimingCardUpdate: thread start <span style="color:#ae81ff">19</span>
</code></pre></div><p>可以看到，在任务超过线程池大小后，start get queue后会阻塞。
这里之所以能实现阻塞，是基于BlockingQueue的put方法来实现的，当阻塞队列满时，put方法会一直等待</p>
<p>参考文章： <a href="https://www.cnblogs.com/chenpi/p/8987597.html">让Java线程池实现任务阻塞执行的一种可行方案</a></p>

        
                
        
              <hr>
              <ul class="pager">
                  
                  <li class="previous">
                      <a href="/post/vue-cli3-wds-ipv6/" data-toggle="tooltip" data-placement="top" title="vue-cli3.0项目中[WDS] Disconnected!的解决方法">&larr; Previous Post</a>
                  </li>
                  
                  
                  <li class="next">
                      <a href="/post/docker-kubernetes-commands/" data-toggle="tooltip" data-placement="top" title="docker与kubernetes常用命令集合">Next Post &rarr;</a>
                  </li>
                  
              </ul>
  
              

<div id="gitalk-container"></div>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>
<script src="/js/md5.min.js"></script>
<script>
	const gitalk = new Gitalk({
	  clientID: 'aff2580d8cc58af83367',
	  clientSecret: '747547f5f87fcc5145b847ab76a498d7e501319f',
	  repo: 'comment',
	  owner: 'shinji3887',
	  admin: ['shinji3887'],
	  id: md5(location.pathname),      
	  distractionFreeMode: false  
	})

	gitalk.render('gitalk-container')
</script>


            </div>
            
            <div class="
                col-lg-8 col-lg-offset-2
                col-md-10 col-md-offset-1
                sidebar-container">

                
                <section>
                    <hr class="hidden-sm hidden-xs">
                    <h5><a href="/tags/">FEATURED TAGS</a></h5>
                    <div class="tags">
                     
                    
                        
                            <a href="/tags/api-gateway" title="api-gateway">
                                api-gateway
                            </a>
                        
                    
                        
                    
                        
                            <a href="/tags/cloud-native" title="cloud-native">
                                cloud-native
                            </a>
                        
                    
                        
                            <a href="/tags/devops" title="devops">
                                devops
                            </a>
                        
                    
                        
                            <a href="/tags/docker" title="docker">
                                docker
                            </a>
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                            <a href="/tags/istio" title="istio">
                                istio
                            </a>
                        
                    
                        
                    
                        
                            <a href="/tags/kubernetes" title="kubernetes">
                                kubernetes
                            </a>
                        
                    
                        
                            <a href="/tags/microservice" title="microservice">
                                microservice
                            </a>
                        
                    
                        
                    
                        
                    
                        
                    
                        
                    
                        
                            <a href="/tags/restful" title="restful">
                                restful
                            </a>
                        
                    
                        
                    
                        
                            <a href="/tags/servicemesh" title="servicemesh">
                                servicemesh
                            </a>
                        
                    
                        
                            <a href="/tags/spring-cloud" title="spring-cloud">
                                spring-cloud
                            </a>
                        
                    
                        
                            <a href="/tags/vue" title="vue">
                                vue
                            </a>
                        
                    
                        
                    
                        
                    
                    </div>
                </section>

                
                <hr>
                <h5>FRIENDS</h5>
                <ul class="list-inline">
                    
                        <li><a target="_blank" href="https://skyao.io/">小剑的博客</a></li>
                    
                        <li><a target="_blank" href="https://zhaohuabing.com/">huabing的博客</a></li>
                    
                        <li><a target="_blank" href="http://blog.didispace.com/">程序猿DD的博客</a></li>
                    
                </ul>
            </div>
        </div>
    </div>
</article>




<footer>
    <div class="container">
        <div class="row">
            <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                <ul class="list-inline text-center">
                   
                   <li>
                       <a href="" rel="alternate" type="application/rss+xml" title="L&#39;s Blog" >
                           <span class="fa-stack fa-lg">
                               <i class="fa fa-circle fa-stack-2x"></i>
                               <i class="fa fa-rss fa-stack-1x fa-inverse"></i>
                           </span>
                       </a>
                   </li>
                   
                    
                    <li>
                        <a href="mailto:18016380795@163.com">
                            <span class="fa-stack fa-lg">
                                <i class="fa fa-circle fa-stack-2x"></i>
                                <i class="fa fa-envelope fa-stack-1x fa-inverse"></i>
                            </span>
                        </a>
                    </li>
		    
                    
                    
                    
                    

                    

		    
                    
                    <li>
                        <a target="_blank" href="/link%20of%20wechat%20QR%20code%20image">
                            <span class="fa-stack fa-lg">
                                <i class="fa fa-circle fa-stack-2x"></i>
                                <i class="fa fa-wechat fa-stack-1x fa-inverse"></i>
                            </span>
                        </a>
                    </li>
		    
                    
                    <li>
                        <a target="_blank" href="https://github.com/shinji3887">
                            <span class="fa-stack fa-lg">
                                <i class="fa fa-circle fa-stack-2x"></i>
                                <i class="fa fa-github fa-stack-1x fa-inverse"></i>
                            </span>
                        </a>
                    </li>
		    
                    
                    <li>
                        <a target="_blank" href="https://www.linkedin.com/in/lupeier">
                            <span class="fa-stack fa-lg">
                                <i class="fa fa-circle fa-stack-2x"></i>
                                <i class="fa fa-linkedin fa-stack-1x fa-inverse"></i>
                            </span>
                        </a>
                    </li>
		    
                </ul>
		<p class="copyright text-muted">
                    Copyright &copy; L&#39;s Blog , 2018
                    <br>
                    <br>
                    <a href="http://icp.chinaz.com/info?q=lupeier.com" target="_blank">备案号：沪ICP备19022667号-1</a>                    
                </p>
            </div>
        </div>
    </div>
</footer>



<script>
    function async(u, c) {
      var d = document, t = 'script',
          o = d.createElement(t),
          s = d.getElementsByTagName(t)[0];
      o.src = u;
      if (c) { o.addEventListener('load', function (e) { c(null, e); }, false); }
      s.parentNode.insertBefore(o, s);
    }
</script>






<script>
    
    if($('#tag_cloud').length !== 0){
        async("/js/jquery.tagcloud.js",function(){
            $.fn.tagcloud.defaults = {
                
                color: {start: '#bbbbee', end: '#0085a1'},
            };
            $('#tag_cloud a').tagcloud();
        })
    }
</script>


<script>
    async("/js/fastclick.js", function(){
        var $nav = document.querySelector("nav");
        if($nav) FastClick.attach($nav);
    })
</script>


<script>
    (function(){
        var bp = document.createElement('script');
        var curProtocol = window.location.protocol.split(':')[0];
        if (curProtocol === 'https'){
       bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
      }
      else{
      bp.src = 'http://push.zhanzhang.baidu.com/push.js';
      }
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();
</script>







</body>
</html>
